layui.use(['jquery','layer'],function() {
    var jquery = layui.jquery;
    var layer = layui.layer;
    //页面赋值
    var course  = JSON.parse(localStorage.getItem("course"));
    setTable();
    function setTable(){
        $('#courseName').text(course.courseName);
        $('#createDate').text(course.createDate);
        $('#createName').text(course.createName);
        $('#courseNprice').text(course.courseNprice);
        $('#coursePrimary').text(course.coursePrimary);
        $('#courseClass').text(course.courseClass);
        $('#likeNum').text(course.likeNum);
        $('#collectNum').text(course.collectNum);
        $('#shareNum').text(course.shareNum);
        $('#picture').attr('src',course.url);
        $('#description').text(course.courseInfo);
        $('#video').attr('src',course.courseUrl);
    }
})